package edu.spec.wfl.week05.class2;

public class Dog {
    private String name;
    private String gender;
    private String food;
    private String kind;
    private String barkSound;
    private int age;

    public Dog(){}

    public Dog(String name,String gender,String food,String kind,String barkSound,int age){
        this.name=name;
        this.gender=gender;
        this.food=food;
        this.kind=kind;
        this.barkSound=barkSound;
        this.age=age;
    }

    public void born(){
        System.out.println("I was born with name"+this.name);
    }
    public void eat(){
        System.out.println("I am"+name+",I eat"+food);
    }
    public void milk(){
        System.out.println("I drink milk when I was young!");
    }
    public void breed(){
        System.out.println("I breed fast!");
    }
    public void bark(){
        System.out.println("I am"+kind+",my sound is"+barkSound);
    }

    public static void main(String[] args){
        Dog erha = new Dog("hh","male","gl","erha","ww",1);
        erha.born();
        erha.eat();
        erha.milk();
        erha.breed();
        erha.bark();
    }
}
